Optimal. Leaf size=397 \[ \frac {d^2 (a+b x)^{m+1} (c+d x)^{-m} \left (\frac {b (c+d x)}{b c-a d}\right )^m \left (a^2 d^2 f^2 (1-m) m+2 a b d f m (2 d e-c f (3-m))-\left (b^2 \left (c^2 f^2 \left (m^2-5 m+6\right )-4 c d e f (3-m)+6 d^2 e^2\right )\right )\right ) \, _2F_1\left (m,m+1;m+2;-\frac {d (a+b x)}{b c-a d}\right )}{2 b^2 f^4 m (m+1) (b c-a d)}+\frac {d^2 (a+b x)^{m+1} (c+d x)^{1-m}}{2 b f^2}+\frac {(a+b x)^m (d e-c f)^2 (c+d x)^{-m} (a d f (3-m)-b (3 d e-c f m)) \, _2F_1\left (1,m;m+1;\frac {(d e-c f) (a+b x)}{(b e-a f) (c+d x)}\right )}{f^4 m (b e-a f)}+\frac {3 b d (a+b x)^m (d e-c f)^2 (c+d x)^{1-m}}{f^4 m (b c-a d)}-\frac {(a+b x)^m (d e-c f)^2 (c+d x)^{1-m}}{f^3 (e+f x)} \]
[Out]
________________________________________________________________________________________
Rubi [C] time = 0.05, antiderivative size = 113, normalized size of antiderivative = 0.28, number of steps used = 2, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {137, 136} \[ \frac {(b c-a d)^3 (a+b x)^{m+1} (c+d x)^{-m} \left (\frac {b (c+d x)}{b c-a d}\right )^m F_1\left (m+1;m-3,2;m+2;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (m+1) (b e-a f)^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
Rule 136
Rule 137
Rubi steps
\begin {align*} \int \frac {(a+b x)^m (c+d x)^{3-m}}{(e+f x)^2} \, dx &=\frac {\left ((b c-a d)^3 (c+d x)^{-m} \left (\frac {b (c+d x)}{b c-a d}\right )^m\right ) \int \frac {(a+b x)^m \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^{3-m}}{(e+f x)^2} \, dx}{b^3}\\ &=\frac {(b c-a d)^3 (a+b x)^{1+m} (c+d x)^{-m} \left (\frac {b (c+d x)}{b c-a d}\right )^m F_1\left (1+m;-3+m,2;2+m;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (b e-a f)^2 (1+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.20, size = 111, normalized size = 0.28 \[ \frac {(b c-a d)^3 (a+b x)^{m+1} (c+d x)^{-m} \left (\frac {b (c+d x)}{b c-a d}\right )^m F_1\left (m+1;m-3,2;m+2;\frac {d (a+b x)}{a d-b c},\frac {f (a+b x)}{a f-b e}\right )}{b^2 (m+1) (b e-a f)^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.02, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (b x + a\right )}^{m} {\left (d x + c\right )}^{-m + 3}}{f^{2} x^{2} + 2 \, e f x + e^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b x + a\right )}^{m} {\left (d x + c\right )}^{-m + 3}}{{\left (f x + e\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.26, size = 0, normalized size = 0.00 \[ \int \frac {\left (b x +a \right )^{m} \left (d x +c \right )^{-m +3}}{\left (f x +e \right )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b x + a\right )}^{m} {\left (d x + c\right )}^{-m + 3}}{{\left (f x + e\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\left (a+b\,x\right )}^m\,{\left (c+d\,x\right )}^{3-m}}{{\left (e+f\,x\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________